import axios from '@/utils/request.js'

//登陆
export const api_authorizations = (data) => {
    return axios({
        url: `/mp/v1_0/authorizations`,
        method: 'post',
        data: data
    });
}

//用户信息
export const api_profile = () => {
    return axios({
        url: `/mp/v1_0/user/profile`,
        method: 'GET',
    });
}


//编辑用户头像
export const api_updatePhoto = (data) => {
    return axios({
        url: `/mp/v1_0/user/photo`,
        method: 'PATCH',
        data
    });
}
//编辑用户资料
export const api_updateProfile = (data) => {
    return axios({
        url: `/mp/v1_0/user/profile`,
        method: 'PATCH',
        data
    });
}



